package com.kun.oa.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Classname MainController
 * @Created by FangKun
 * @Date 2023/1/2 0002 下午 17:10
 */
@Controller
public class MainController {

    @RequestMapping("/")
    public String index(){
        return "index";
    }

    @RequestMapping("/index")
    public String index1(){
        return "index";
    }

    @RequestMapping("errorPage")
    public String errorPage (Model model) {
        return "/errorPage";
    }
}
